package com.siashan.sensitive.serializer;

/**
 * 能否进行脱敏处理默认实现类
 *
 * @author siashan
 * @date 2023/5/24
 * @since 1.2.1
 */
public class IdCardStrategy extends AbstractSensitiveStrategy {

    @Override
    public String serialize(String s) {
        return s.replaceAll("(\\S)\\S(\\S*)", "$1*$2");
    }
}
